<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<%= "index" %>
<h1>教师名额信息</h1>
<table>
  <tr>
    <th>姓名</th>
    <th>类型</th>
    <th>名额</th>
  </tr>

<% for quantity in @quantities %>
  <tr>
    <td><%=h quantity.sname %></td>
    <td><%=h quantity.stype %></td>
    <td><%=h quantity.sresume %></td>
    <td><%= link_to '详细', quantity %></td>
    <td><%= link_to '编辑', edit_quantity_path(quantity) %></td>
    <td><%= link_to '删除', quantity, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to '添加学生', new_quantity_path %>